﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        function call() {
            var text = document.getElementById("v1").value;
            parent.layer.callData(location.href, text);
        }
    </script>
</head>
<body>
<h1>注意：这里是在另外一个页面内,iframe</h1>
<input type="text" id="v1" />
<input type="button" value="触发回调函数，真正的父子页面传值" onclick="call()" />
</body>
</html>
